export interface CorsConfig {
  origin: string | string[];
  allowMethods: string[];
  allowHeaders: string[];
}

export interface DatabasePoolConfig {
  max: number;
  min: number;
  acquire: number;
  idle: number;
}

export interface DatabaseConfig {
  db_host: string;
  db_port: number | string;
  db_user: string;
  db_pwd: string;
  db_name: string;
  pool?: DatabasePoolConfig;
  logging?: boolean;
  enableKeepAlive?: boolean;
  keepAliveInitialDelay?: number;
}
export interface AppConfig {
  environment: string;
  cors: CorsConfig;
}
export interface Config {
  environment: string;
  cors: CorsConfig;
  // 服务器端口配置
  server: {
    port: number;
  };
}
